#include "colorsplugin.h"
#include "colorspluginplugin.h"

#include <QtCore/QtPlugin>

ColorsPluginPlugin::ColorsPluginPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void ColorsPluginPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool ColorsPluginPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *ColorsPluginPlugin::createWidget(QWidget *parent)
{
    return new ColorsPlugin(parent);
}

QString ColorsPluginPlugin::name() const
{
    return QLatin1String("ColorsPlugin");
}

QString ColorsPluginPlugin::group() const
{
    return QLatin1String("Custom Plugins VIG");
}

QIcon ColorsPluginPlugin::icon() const
{
    return QIcon();
}

QString ColorsPluginPlugin::toolTip() const
{
    return QLatin1String("");
}

QString ColorsPluginPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool ColorsPluginPlugin::isContainer() const
{
    return false;
}

QString ColorsPluginPlugin::domXml() const
{
    return QLatin1String("<widget class=\"ColorsPlugin\" name=\"colorsPlugin\">\n</widget>\n");
}

QString ColorsPluginPlugin::includeFile() const
{
    return QLatin1String("colorsplugin.h");
}

Q_EXPORT_PLUGIN2(colorspluginplugin, ColorsPluginPlugin)
